package com.monkey.model.monkey;

import com.monkey.generator.model.TUserFeed;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/1/16.
 */
public class MonkeyFeed {
    private int weight;
    private int grow;
    private int reproduct;
    private int bonus;
    private int money;
    private int status;
    private String uuid;
    private String createtime;

    public MonkeyFeed(TUserFeed feed, SimpleDateFormat sdf) {
        this.weight = feed.getWeight();
        this.grow = feed.getGrow();
        this.reproduct = feed.getReproduct();
        this.bonus = feed.getBonus();
        this.money = feed.getMoney();
        this.status = feed.getStatus();
        this.uuid = feed.getUuid();
        this.createtime = sdf.format(feed.getCreatetime());
    }

    public float getWeight() {
        return weight * 1.0f / 100;
    }

    public float getGrow() {
        return grow * 1.0f / 100;
    }

    public float getReproduct() {
        return reproduct * 1.0f / 100;
    }

    public float getBonus() {
        return bonus * 1.0f / 100;
    }

    public float getMoney() {
        return money;
    }

    public int getStatus() {
        return status;
    }

    public String getUuid() {
        return uuid;
    }

    public String getCreatetime() {
        return createtime;
    }
}
